package com.ruoyi.project.mahjong.domain.uyil;

import com.ruoyi.project.mahjong.domain.TMemberLog;
import com.ruoyi.project.mahjong.service.ITMemberLogService;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import java.util.function.Predicate;

public class MemberLogUtil {


    public static TMemberLog insertMemberLog(Long shopId,
                                             Long staffId,
                                             Long memberId,
                                             String integral,
                                             BigDecimal sendMony,
                                             BigDecimal onlySend,
                                             String money,
                                             String event,
                                             String bak1,
                                             String bak2,
                                             BigDecimal remainTotalMoney){
     TMemberLog tMemberLog = new TMemberLog();
     if (shopId!=null){
         tMemberLog.setShopId(shopId);
     }
        if (staffId!=null){
            tMemberLog.setStaffId(staffId);
        }
        if (memberId!=null){
            tMemberLog.setMemberId(memberId);
        }
        if (sendMony!=null){
            tMemberLog.setSendMoney(sendMony);
        }
        if (onlySend!=null){
            tMemberLog.setOnlySend(onlySend);
        }
        if (money!=null){
            tMemberLog.setMoney(money);
        }
        if (integral!=null){
            tMemberLog.setIntegral(integral);
        }
        if (event!=null){
            tMemberLog.setEvent(event);
        }
        if (bak1!=null){
            tMemberLog.setBak1(bak1);
        }
        if (bak2!=null){
            tMemberLog.setBak2(bak2);
        }
        if (null != remainTotalMoney) {
            tMemberLog.setRemainTotalMoney(remainTotalMoney);
        }
        tMemberLog.setCreateTime(new Date());


     return tMemberLog;

 }

    public static String spdh="兑换商品";
    public static String hycz="会员充值";
}
